#include"UdpServer.hpp"
#include"Route.hpp"
#include<memory>


int main()
{
    EnableScerrn();
    uint16_t port=8899;
    //std::string ip="127.0.0.1";

    Route messageRoute;
    service_t message_rout=bind(&Route::Forward,&messageRoute,std::placeholders::_1,std::placeholders::_2,std::placeholders::_3);

    std::unique_ptr<UdpServer> usvr=std::make_unique<UdpServer>(message_rout,port);//c++14智能指针标准
    usvr->InitServer();
    usvr->Start();
    return 0;
}